package com.whmskj.xjlhsc.service.dto;

import lombok.Data;
import org.springframework.util.StringUtils;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

//电清分析
@Data
public class DqAnalysisDto implements Serializable {

    private String name;
    private String shift;
    private String date;
    private String machineryTool;
    private String processName;
    private String status;
    private String pef="0";
    private String aef="0";
    private String yf="0";
    private String yj="0";
    private String yb="0";
    private String n="0";
    private String s="0";
    private String l="0";
    private String t="0";
    private String c="0";
    private String c1="0";
    private String c2="0";
    private String cc="0";
    private String cc1="0";
    private String cc2="0";
    private String j="0";
    private String j1="0";
    private String j2="0";
    private String pf="0";
    private String pc="0";
    private String fd="0";
    private String pp="0";
    private String fl="0";
    private String prod="0";

    public String getShift() {
        if(!StringUtils.hasText(shift)) return shift;
        if(shift.equals("1")) return "白班";
        return "夜班";
    }

    @Data
    public static class Chart{
        List<String> dateList = new ArrayList<>();
        Map<String, List<Double>> dataList = new HashMap<>();
    }

}

